
public class Calculator implements CalculatorInterface{

	@Override
	public double add(double x, double y) {
		System.out.println("Add");
		System.out.println(x + " + " + y + ": " + (x+y));
		return x+y;
	}

	@Override
	public double sub(double x, double y) {
		System.out.println("Subtract");
		System.out.println(x + " - " + y + ": " + (x-y));
		return x-y;
	}

	@Override
	public double mul(double x, double y) {
		System.out.println("Multiple");
		System.out.println(x + " * " + y + ": " + (x*y));
		return x*y;
	}

	@Override
	public double div(double x, double y) {
		System.out.println("Divide");
		System.out.println(x + " / " + y + ": " + (x/y));
		return x/y;
	}
	
}
